home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac: Not for Sale / Another.not.for.sale (Australia).iso / fade into you / getting there / Apps / MOO-1.7.6.src / inc / my-time.h < prev    next >
Text File  |  1994-11-02  |  2KB  |  72 lines

  1. /******************************************************************************
  2.   Copyright (c) 1992 Xerox Corporation.  All rights reserved.
  3.   Portions of this code were written by Stephen White, aka ghond.
  4.   Use and copying of this software and preparation of derivative works based
  5.   upon this software are permitted.  Any distribution of this software or
  6.   derivative works must comply with all applicable United States export
  7.   control laws.  This software is made available AS IS, and Xerox Corporation
  8.   makes no warranty about the software, its performance or its conformity to
  9.   any specification.  Any person obtaining a copy of this software is requested
  10.   to send their name and post office or electronic mail address to:
  11.     Pavel Curtis
  12.     Xerox PARC
  13.     3333 Coyote Hill Rd.
  14.     Palo Alto, CA 94304
  15.     Pavel@Xerox.Com
  16.  *****************************************************************************/
  17.  
  18. #ifndef My_Time_H
  19. #define My_Time_H 1
  20.  
  21. #include "config.h"
  22.  
  23. #if TIME_H_NEEDS_HELP
  24. /* Some systems' time.h does not include time_t or clock_t */
  25. #include "my-types.h"
  26. #endif
  27.  
  28. #include <time.h>
  29.  
  30. #if NDECL_TIME
  31. #include "my-types.h"
  32.  
  33. extern time_t    time(time_t *);
  34. #endif
  35.  
  36. #if defined(MACH) && defined(CMU)
  37. /* These clowns blew the declaration of strftime() in their <time.h> */
  38. #undef HAVE_STRFTIME
  39. #endif
  40.  
  41. #if HAVE_STRFTIME && NDECL_STRFTIME
  42. #include "my-types.h"
  43.  
  44. extern size_t    strftime(char *s, size_t smax, const char *fmt,
  45.              const struct tm *tp);
  46. #endif
  47.  
  48. #if HAVE_TZNAME && NDECL_TZNAME
  49. extern char    *tzname;
  50. #endif
  51.  
  52. #endif /* !My_Time_H */
  53.  
  54. /* $Log: my-time.h,v $
  55.  * Revision 1.5  1992/10/23  23:03:47  pavel
  56.  * Added copyright notice.
  57.  *
  58.  * Revision 1.4  1992/10/23  19:35:14  pavel
  59.  * Added check for avoiding strftime() on CMU MACH systems, since they declare
  60.  * it wrong (though they implement it right).
  61.  * Added missing #include "my-types.h" for strftime() declaration.
  62.  *
  63.  * Revision 1.3  1992/10/21  03:02:35  pavel
  64.  * Converted to use new automatic configuration system.
  65.  *
  66.  * Revision 1.2  1992/07/30  00:38:08  pavel
  67.  * Add support for compiling on RISC/os 4.52 and NonStop-UX A22.
  68.  *
  69.  * Revision 1.1  1992/07/20  23:23:12  pavel
  70.  * Initial RCS-controlled version.
  71.  */
  72.